package cn.smbms.service.Provider.impl;

import cn.smbms.beans.Provider;
import cn.smbms.dao.provider.ProviderDao;
import cn.smbms.service.Provider.ProviderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ Author   ：陈慧杰
 * @ Date     ：Created in 10:28 2021/12/13
 */
@Service("providerService")
public class ProviderServiceImpl  implements ProviderService {
    @Autowired
    @Qualifier("providerDao")
    private ProviderDao providerDao;
    @Override
    public List<Provider> getProviderList() {
    return   providerDao.getProviderList();
    }

    @Override
    public List<Provider> getProvider(String queryProCode, String queryProName) {
        return  providerDao.getProvider(queryProCode,queryProName);
    }

    @Override
    public int doProvider(Provider provider) {
        return providerDao.doProvider(provider);
    }

    @Override
    public int deleteProvider(String proid) {
        return providerDao.deleteProvider(proid);
    }

    @Override
    public Provider providerView(String proid) {
        return providerDao.providerView(proid);
    }

    @Override
    public int doProviderModify(Provider provider) {
        return  providerDao.doProviderModify(provider);
    }
}
